package com.deng.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 系统操作日志表
 * </p>
 *
 * @author deng
 * @since 2022-08-10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_log")
@ApiModel(value = "SysLog对象", description = "系统操作日志表")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "log_id", type = IdType.AUTO)
    private Long logId;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("日志类型")
    private String logType;

    @ApiModelProperty("操作方法")
    private String method;

    @ApiModelProperty("操作参数")
    private String params;

    @ApiModelProperty("请求IP地址")
    private String requestIp;

    @ApiModelProperty("请求时间")
    private Long time;

    @ApiModelProperty("操作账号")
    private String username;

    @ApiModelProperty("操作人所在地址")
    private String address;

    @ApiModelProperty("浏览器")
    private String browser;

    @ApiModelProperty("异常详情")
    private String exceptionDetail;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
